﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCWebApp.Models;

namespace MVCWebApp.Controllers
{
    public class HomeController : Controller
    {
        private ShopEntities laptops = new ShopEntities();
       public HomeController()
       {
           ViewData["brands"] = laptops.brands.ToList();
           List<group>groups = laptops.groups.ToList();
           ViewData["groups"]=groups;
           ViewData["features"] = laptops.features.ToList();
           ViewData["products"] = laptops.products.ToList();
       }
        public ActionResult Index()
        {
            //ViewData["sliders"] = laptops.sliders.ToList();

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

       
        public ActionResult Login()
        {
            return View();
        }
        public ActionResult Register()
        {
            return View();
        }
        public ActionResult Terms()
        {
            return View();
        }
        public ActionResult Contact()
        {
            return View();
        }
    }
}
